From 9d045db142df369bca8795315d3c6c967a99ddd3 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 12 Mar 2018 10:06:59 +0000 Subject: [PATCH] Annotate gdk_gl_texture_new() appropriately This is a constructor, and it needs a transfer annotation. Sadly, the resulting introspection representation is going to be a less than satisfactory `Gdk.gl_texture_new()`, because there is no such thing as a GdkGLTexture in the public API. --- gdk/gdkgltexture.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdk/gdkgltexture.c b/gdk/gdkgltexture.c index 6a0185626a..8f93dcb879 100644 --- a/gdk/gdkgltexture.c +++ b/gdk/gdkgltexture.c @@ -178,7 +178,7 @@ gdk_gl_texture_release (GdkTexture *texture) } /** - * gdk_gl_texture_new: + * gdk_gl_texture_new: (constructor) * @context: a #GdkGLContext * @id: the ID of a texture that was created with @context * @width: the nominal width of the texture @@ -193,8 +193,8 @@ gdk_gl_texture_release (GdkTexture *texture) * which will happen when the GdkTexture object is finalized, or due to * an explicit call of gdk_texture_release_gl(). * - * Return value: A newly-created #GdkTexture - **/ + * Return value: (transfer full): A newly-created #GdkTexture + */ GdkTexture * gdk_gl_texture_new (GdkGLContext *context, guint id, -- 2.30.2